package com.example.autosize.app

import android.app.Application
import android.content.Context

/**
 * Created by 舍长 on 2019/5/9
 * describe:
 */
class App: Application() {
    companion object {
        var _context: Application? = null
        fun getContext(): Context {
            return _context!!
        }

    }
    override fun onCreate() {
        super.onCreate()
//        AutoSizeConfig.getInstance().isBaseOnWidth = false//默认使用宽度适配
//        AutoSizeConfig.getInstance().isUseDeviceSize = true//全局全屏适配
        _context = this
    }
}